<?php

namespace App\Models\Train\TrainTripInfo\Repositories\Interfaces;

use App\Models\Train\TrainTripInfo\TrainTripInfo;

interface TrainTripInfoRepositoryInterface
{

    /**
     * 新增车次详情
     * @return TrainTripInfo
     */
    public function addTrainTripInfo(array $data): TrainTripInfo;

    /**
     * 查找车次详情
     * @param string $train_code
     * @param string $from_station_code
     * @param string $to_station_code
     * @return TrainTripInfo|null
     */
    public function findOneByTrainAndStation(string $train_code, string $from_station_code, string $to_station_code): ?TrainTripInfo;
}